package com.campuscrowdsourcing.server.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 团队信息	提示：	money、score自动填充0
 * </p>
 *
 * @author Xinyuan Zhao
 * @since 2023-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("team")
public class Team implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 团队昵称
     */
    @TableField("name")
    private String name;

    /**
     * 团队简介
     */
    @TableField("sign")
    private String sign;

    /**
     * 团队Plan币
     */
    @TableField("money")
    private Integer money;

    /**
     * 团队头像
     */
    @TableField("img")
    private String img;

    /**
     * 信用积分
     */
    @TableField("credit")
    private Integer credit;

    /**
     * 软删除
     */
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
